const Controller = require('egg').Controller

class CourseController extends Controller {
  async updateCourse() {
    const { ctx } = this
    const res = await ctx.service.crawler.course.index(ctx.request.body)
    if (res.num >= 0) {
      return ctx.renderBack(res, '1', '更新课程成功')
    }
  }
}

module.exports = CourseController
